#!/usr/bin/python
# -*- coding: utf-8 -*-

'''
目的：将100条情报扩充为10000条情报
'''

def increase_num(input_path,out_path):
    with open (input_path,'r',encoding='utf-8') as f1,open(out_path,'w',encoding='utf-8')as f2:
        data = f1.readlines()
        for i in range(0,100):
            for intelligence in data:
                f2.write(intelligence)
            f2.write(('\n'))

if __name__=='__main__':
    increase_num(input_path='../data/demo.txt',out_path='../data/demo_10000.txt')

